package cn.neusoft.feignClients;

import cn.neusoft.interceptor.FeignInterceptor;
import cn.neusoft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "warehouse-server", configuration = FeignInterceptor.class)
public interface WarehouseFeignClient {

    @GetMapping("/Warehouse/getWarehouseStock/{warehouseId}")
    Long GetWarehouseStock(@PathVariable("warehouseId") Long warehouseId);

    @GetMapping("Warehouse/{commodityId}/{warehouseId}")
    ResultBean getCommodityWarehouse(@PathVariable("commodityId") String commodityId,
                                            @PathVariable("warehouseId") Long warehouseId);
}
